const versionList = [
  { label: '消防版', value: 'fireControl.js' },
  { label: '天通版', value: 'tiantong.js' },
  { label: '天通离线版', value: 'tiantongOffline.js' },
  { label: '珠海版', value: 'zhuhaiGas.js' },
  { label: '华谕版', value: 'dispatch.js' },
  { label: '华谕离线版', value: 'dispatchOfflineMap.js' },
  { label: '安全帽版', value: 'dispatchSafetyHat.js' },
  { label: '上饶版', value: 'shangrao.js' },
  { label: '上饶Leaflet版', value: 'shangraoLeaflet.js' },
  { label: '山西铁路版', value: 'shanxiRailway.js' },
  { label: '图元版', value: 'tuyuan.js' },
  { label: '黑龙江黑河版', value: 'heilongjiangHeiheRailway.js' },
  { label: '内蒙古同丰科技版', value: 'innerMongoliaTongfeng.js' },
  { label: '上饶公安局版', value: 'shangraoPublicSecurityBureau.js' },
  { label: '融赋版', value: 'rongfu.js' },
  { label: '海尔版', value: 'haier.js' },
  { label: '燃气版', value: 'pipingGas.js' },
  { label: '内蒙古包头版', value: 'innerMongoliaBaotou.js' },
  { label: '秦皇岛版', value: 'qinhuangdao.js' },
  { label: '中国民航大学版', value: 'civilAviationUniversityChina.js' },
  { label: '致业版', value: '.jszecn' },
  { label: '致业离线版', value: 'zecnOfflineMap.js' },
  { label: '测试致业版', value: 'testZecn.js' },
  { label: '测试致业离线地图版', value: 'testZecnOfflineMap.js' },
  { label: '河南鹤壁版', value: 'zecnHenanHebi.js' },
  { label: '南京邮电版', value: 'nanjingPostBureau.js' },
  { label: '泉盛版', value: 'quanSheng.js' },
  { label: '新疆昌吉市场监管版', value: 'xinjiangChangjiMarketRegulation.js' },
  { label: '华谕全版', value: 'allApplications.js' },
  { label: 'sass安全帽版', value: 'sassDispatchSafetyHat.js' },
  { label: '北京公安送检版', value: 'beijingGonganInspection.js' },
  { label: '深圳地铁版', value: 'szmetroDemo.js' },
  { label: '北京民生银行外网版', value: 'beijingMinshengBanking.js' },
  { label: '北京民生银行内网版', value: 'beijingMinshengBankingOffline.js' },
  { label: '警威铁路版', value: 'jingweiRailway.js' },
  { label: '动态版', value: 'dynamic.js' },
  { label: '动态离线地图版', value: 'dynamicOfflineMap.js' },
  { label: '动态离线地图Bigemap版', value: 'dynamicOfflineMapBigemap.js' },
  { label: '中交建版', value: 'zhongjiaojian.js' }
]


function getContent(content = '') {
  let text = ''
  versionList.forEach((item) => {
    if (content.includes(item.value)) {
      text += `${item.label}, `
    }
  })
  return text.substring(0, text.length - 2)
}

const a1Value = await Input.textAsync('将查找结果复制到这里')
const content = `${a1Value}`.split(' ')
console.log(getContent(content))
